[TS Calls] Execute semantic models written in TypeScript - #380
Open
CaelmBleidd wants to merge 6 commits into
Open
CaelmBleidd wants to merge 6 commits into
CaelmBleidd wants to merge 6 commits into
Conversation
CaelmBleidd
force-pushed
the
caelmbleidd/issue-366-ets-ir-models
branch
2 times, most recently
from
September 7, 2026 19:17
61cc06f to
85e148a
Compare
This was referenced Sep 7, 2026
CaelmBleidd
force-pushed
the
caelmbleidd/issue-365-guarded-semantic-models
branch
2 times, most recently
from
September 8, 2026 13:57
54610a9 to
eba8e4e
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/issue-366-ets-ir-models
branch
from
September 8, 2026 13:57
85e148a to
c51b303
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/issue-366-ets-ir-models
branch
from
September 17, 2026 20:24
a6c4cbe to
91173b1
Compare
Base automatically changed from
caelmbleidd/issue-365-guarded-semantic-models
to
main
September 18, 2026 16:08
CaelmBleidd
force-pushed
the
caelmbleidd/issue-366-ets-ir-models
branch
from
September 18, 2026 16:26
91173b1 to
41961f7
Compare
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Execute semantic models written in ordinary TypeScript through the existing EtsIR interpreter.
Array.popuses array indexing andlength, preserving numeric, reference, and unresolved elements, mutations, and aliases.anyvalues and symbolicany[]pop results can shrink arrays. Negative zero remains accepted.scope.assert, which updates both path constraints and cached models and stops infeasible paths.The branch is based on
mainata442b2a9, including #377.Supported domain
The built-in
popmodel accepts zero-argument calls on proven one-dimensional arrays, includingany[],unknown[], and normalized widened/wrapped aliases. Unsupported inputs use the configured fallback.Length assignments support integral numeric values from zero through the current length, within the configured size limit. Growth and coercion of nonnumeric lengths remain unsupported; growth and sparse slots are tracked in #388.
Validation
For head
8188fecd:anyvalue to array length, with soft-constraint repair disabled. Temporarily replacing both assertions with directpathConstraints +=made that regression fail; the committed implementation retainsscope.assert.:usvm-ts:detektMainand:usvm-ts:detektTestpassed with 0 smells;git diff --checkpassed.Closes #366
Part of #360